import request from "@/utils/request.js";
import baseUrl from "@/utils/version.js";

export function delete_user(id) {
    return request.delete(baseUrl.system.v1 + `/user/${id}`);
}

export function update_user(id, data) {
    return request.put(baseUrl.system.v1 + `/user/${id}`, data);
}

export function status_user(id) {
    return request.put(baseUrl.system.v1 + `/user/status/${id}`);
}

export function get_user(id) {
    return request.get(baseUrl.system.v1 + `/user/${id}`);
}

export function list_user(page, pageSize) {
    return request.get(baseUrl.system.v1 + `/user?page${page}&pageSize=${pageSize}`);
}